package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CgzxPlanproductplanMesMapper;
import com.ruoyi.system.domain.CgzxPlanproductplanMes;
import com.ruoyi.system.service.ICgzxPlanproductplanMesService;
import com.ruoyi.common.support.Convert;
import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;


/**
 * 城轨轴箱派工任务反馈 服务层实现
 * 
 * @author ruoyi
 * @date 2019-02-22
 */
@Service
public class CgzxPlanproductplanMesServiceImpl implements ICgzxPlanproductplanMesService 
{
	@Autowired
	private CgzxPlanproductplanMesMapper cgzxPlanproductplanMesMapper;

	/**
     * 查询城轨轴箱派工任务反馈信息
     * 
     * @param dispatchCode 城轨轴箱派工任务反馈ID
     * @return 城轨轴箱派工任务反馈信息
     */
    @Override
    @DataSource(value = DataSourceType.SLAVE)
	public CgzxPlanproductplanMes selectCgzxPlanproductplanMesById(String dispatchCode)
	{
	    return cgzxPlanproductplanMesMapper.selectCgzxPlanproductplanMesById(dispatchCode);
	}
	
	/**
     * 查询城轨轴箱派工任务反馈列表
     * 
     * @param cgzxPlanproductplanMes 城轨轴箱派工任务反馈信息
     * @return 城轨轴箱派工任务反馈集合
     */
	@Override
	@DataSource(value = DataSourceType.SLAVE)
	public List<CgzxPlanproductplanMes> selectCgzxPlanproductplanMesList(CgzxPlanproductplanMes cgzxPlanproductplanMes)
	{
	    return cgzxPlanproductplanMesMapper.selectCgzxPlanproductplanMesList(cgzxPlanproductplanMes);
	}
	
    /**
     * 新增城轨轴箱派工任务反馈
     * 
     * @param cgzxPlanproductplanMes 城轨轴箱派工任务反馈信息
     * @return 结果
     */
	@Override
	@DataSource(value = DataSourceType.SLAVE)
	public int insertCgzxPlanproductplanMes(CgzxPlanproductplanMes cgzxPlanproductplanMes)
	{
	    return cgzxPlanproductplanMesMapper.insertCgzxPlanproductplanMes(cgzxPlanproductplanMes);
	}
	
	/**
     * 修改城轨轴箱派工任务反馈
     * 
     * @param cgzxPlanproductplanMes 城轨轴箱派工任务反馈信息
     * @return 结果
     */
	@Override
	@DataSource(value = DataSourceType.SLAVE)
	public int updateCgzxPlanproductplanMes(CgzxPlanproductplanMes cgzxPlanproductplanMes)
	{
	    return cgzxPlanproductplanMesMapper.updateCgzxPlanproductplanMes(cgzxPlanproductplanMes);
	}

	/**
     * 删除城轨轴箱派工任务反馈对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	@DataSource(value = DataSourceType.SLAVE)
	public int deleteCgzxPlanproductplanMesByIds(String ids)
	{
		return cgzxPlanproductplanMesMapper.deleteCgzxPlanproductplanMesByIds(Convert.toStrArray(ids));
	}
	
}
